
#include "stdafx.h"
#include "VirtualProgress.h"
#include "SKEYBid.h"
#include "UserMessage.h"

CVirtualProgress::CVirtualProgress()
{
}

CVirtualProgress::~CVirtualProgress()
{
}

void CVirtualProgress::setCtrlProgressPos(intptr_t progpos, intptr_t immpos, intptr_t allpos)
{
	CMainPanelGetter main(this); if (!main.hasPanel()) return;
	main.PostMainMessage(WM_Progress_setCtrlProgressPos, progpos, MAKELPARAM(immpos, allpos));
}

void CVirtualProgress::setCtrlShowSeconds(intptr_t sec)
{
	CMainPanelGetter main(this); if (!main.hasPanel()) return;
	main.PostMainMessage(WM_Progress_setCtrlShowSeconds, sec);
}

void CVirtualProgress::setCtrlInitFromBid(intptr_t hookMax)
{
	CMainPanelGetter main(this); if (!main.hasPanel()) return;
	main.PostMainMessage(WM_Progress_setCtrlInitFromBid, hookMax);
}

#ifndef __USE__PROGRESSBAR__
void CVirtualProgress::setCtrlDcdResult(bool isOn, intptr_t dcdResult, intptr_t iNoticeDcd)
{
	CMainPanelGetter main(this); if (!main.hasPanel()) return;
	main.PostMainMessage(WM_Progress_setCtrlDcdResult, isOn, MAKELPARAM(dcdResult, iNoticeDcd));
}

void CVirtualProgress::setCtrlCheckAutoStatus(bool autoStatusShown, intptr_t isAutoDecode)
{
	CMainPanelGetter main(this); if (!main.hasPanel()) return;
	main.PostMainMessage(WM_Progress_setCtrlCheckAutoStatus, autoStatusShown, isAutoDecode);
}

void CVirtualProgress::setCtrlAutoChanged(bool autoStatusShown, intptr_t isAutoDecode)
{
	CMainPanelGetter main(this); if (!main.hasPanel()) return;
	main.PostMainMessage(WM_Progress_setCtrlAutoChanged, autoStatusShown, isAutoDecode);
}

#ifdef _SKEYMINI
void CVirtualProgress::setCtrlClearStatusText()
{
	CMainPanelGetter main(this); if (!main.hasPanel()) return;
	main.PostMainMessage(WM_Progress_setCtrlClearStatusText);
}
#endif
#endif

